import 'package:flutter/cupertino.dart';
import 'package:flutter_ahj_app/base/utils/JUIKit/JText.dart';
import 'package:flutter_ahj_app/base/values/SQColor.dart';
import 'package:flutter_ahj_app/base/values/dimens.dart';

class projectListItem extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
        child: projectItem(context));
  }

  Widget projectItem(BuildContext context) {
    return Column(
      children: <Widget>[
        Container(
          height: 12,
          color: Color(0xfff6f6f6),
        ),
        Row(
          children: <Widget>[
            Container(
              color: Color(0xFF1a73e8),
              width: 35,
              height: 20,
              margin: EdgeInsets.fromLTRB(20, 10, 0, 0),
              child: JText('自建',textAlign: TextAlign.center,color: SQColor.white,fontSize: 12,),
            ),
            Expanded(
              flex: 1,
              child: Container(
                padding: EdgeInsets.fromLTRB(10, 10, 0, 0),
                child: JText('时代峻峰放胡椒粉和方法黄金分割辉丰股份环境',color: Color(0xff333333),fontSize: 14,maxLines: 1,
                overflow: TextOverflow.ellipsis,),
              ),
            ),
            Container(
              padding: EdgeInsets.fromLTRB(0, 10, 20, 0),
              child: JText('项目已审批',color: Color(0xffe5bf3c),fontSize: 12,),
            ),
          ],
        ),
        Container(
          margin: EdgeInsets.fromLTRB(20, 6, 20, 0),
          alignment: Alignment.centerLeft,
          child: JText('2020年03月12日17:16:44',color: Color(0xffa3a3a3),fontSize: 12,),
        ),
        Container(
          margin: EdgeInsets.fromLTRB(20, 6, 20, 0),
          alignment: Alignment.centerLeft,
          child: RichText(
            text: TextSpan(
              text: '项目类型：',
              style: TextStyle(color: Color(0xffa3a3a3), fontSize: Dimens.textSize28,),
              children: <TextSpan>[
                TextSpan(
                  text: '收到就好的就好复活甲东方季道副驾驶的房价开始疯狂送不挂科',
                  style: TextStyle(color: Color(0xff666666), fontSize: Dimens.textSize28),
                ),
              ],
            ),
          ),
        ),
        Container(
          margin: EdgeInsets.fromLTRB(20, 6, 20, 0),
          alignment: Alignment.centerLeft,
          child: RichText(
            text: TextSpan(
              text: '所属公司：',
              style: TextStyle(color: Color(0xffa3a3a3), fontSize: Dimens.textSize28),
              children: <TextSpan>[
                TextSpan(
                  text: '收到就好的就好复活甲',
                  style: TextStyle(color: Color(0xff666666), fontSize: Dimens.textSize28),
                ),
              ],
            ),
          ),
        ),
        Container(
          margin: EdgeInsets.fromLTRB(20, 6, 20, 0),
          alignment: Alignment.centerLeft,
          child: RichText(
            text: TextSpan(
              text: '客户名称：',
              style: TextStyle(color: Color(0xffa3a3a3), fontSize: Dimens.textSize28),
              children: <TextSpan>[
                TextSpan(
                  text: '收到就好的就好复活甲',
                  style: TextStyle(color: Color(0xff666666), fontSize: Dimens.textSize28),
                ),
              ],
            ),
          ),
        ),
        Container(
          margin: EdgeInsets.fromLTRB(20, 6, 20, 20),
          alignment: Alignment.centerLeft,
          child: RichText(
            text: TextSpan(
              text: '子项目数量：',
              style: TextStyle(color: Color(0xffa3a3a3), fontSize: Dimens.textSize28),
              children: <TextSpan>[
                TextSpan(
                  text: '收到就好的就好复活甲',
                  style: TextStyle(color: Color(0xff666666), fontSize: Dimens.textSize28),
                ),
              ],
            ),
          ),
        ),
      ],
    );
  }
}